import { Loading, LoadingController,ToastController } from 'ionic-angular';
export abstract class BaseUI {
    constructor() {}

    protected showLoading(loadingCtrl: LoadingController, message: string): Loading {
        let loader = loadingCtrl.create({
            content: message,
            dismissOnPageChange: true
        });
        loader.present();
        return loader;
    }
    protected showToast(toastCtrl:ToastController,message:string){
        let toast=toastCtrl.create({
            message:message,
            duration:2000,
            position:'bottom'
        })
        toast.present()
    }
}
